<template>
  <div class="app">
    <h2>我是App组件</h2>
    <Child/>
  </div>
</template>

<script>
  import Child from './components/Child.vue'

  export default {
    name:'App',
    components:{Child},
    beforeCreate() {
      console.log('App-创建之前')
    }
  }
</script>

<style>
  .app {
    background-color: #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px;
  }
</style>